package com.example.concurrent;

import lombok.extern.slf4j.Slf4j;

@Slf4j(topic = "c.test32")
public class Test32 {
	static boolean run = true;
	public static void main(String[] args) throws InterruptedException {
		Thread t = new Thread(
				()->{
					while (run) {
						//
						//log.debug("{} ",run);
						System.out.println();
					}
					//log.debug("{} ",run);
				}
		);
		t.start();
		Thread.sleep(1000);
		log.debug("主线程结束");
		run = false;
	}
}
